projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b2043
)
mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC
author
Boris BREZILLON
<
[email protected]
>
Tue, 2 Sep 2014 08:23:09 +0000
(10:23 +0200)
committer
Andreas Bießmann
<
[email protected]
>
Thu, 18 Sep 2014 22:11:22 +0000
(
00:11
+0200)
Disable subpage write when using PMECC to prevent buggy partial page write.
This fix has been taken from linux sources (see commit
90445ff6241e2a13445310803e2efa606c61f276
)
Signed-off-by: Boris BREZILLON <
[email protected]
>
Acked-by: Josh Wu <
[email protected]
>
Signed-off-by: Andreas Bießmann <
[email protected]
>
drivers/mtd/nand/atmel_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/atmel_nand.c
b/drivers/mtd/nand/atmel_nand.c
index ccc4dc014c38e54acbcb5fad799ac2989ff66080..9114a86da2bb0ee379739693e19308937516b44e 100644
(file)
--- a/
drivers/mtd/nand/atmel_nand.c
+++ b/
drivers/mtd/nand/atmel_nand.c
@@
-882,6
+882,7
@@
static int atmel_pmecc_nand_init_params(struct nand_chip *nand,
return -ENOMEM;
}
+ nand->options |= NAND_NO_SUBPAGE_WRITE;
nand->ecc.read_page = atmel_nand_pmecc_read_page;
nand->ecc.write_page = atmel_nand_pmecc_write_page;
nand->ecc.strength = cap;